﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace housingsafety.server.Models
{
    public class EditUserInput
    {
        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        public string Phone { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        [Required]
        public string Nickname { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Required]
        public string IdCard { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        [Required]
        public PermissionRoleType Role { get; set; }
        /// <summary>
        /// 用户组
        /// </summary>
        [Required]
        public UserGroupType UserGroup { get; set; }
        /// <summary>
        /// 行政区
        /// </summary>
        [Required]
        public SimpleDepartmentDto DistrictCode { get; set; }
        /// <summary>
        /// 管辖区域列表
        /// </summary>
        [Required]
        public List<SimpleDepartmentDto> JurisdictionCodes { get; set; }
        /// <summary>
        /// 行政区Json,用于前端编辑用户路径还原使用
        /// </summary>
        public string DistrictJson { get; set; }
        /// <summary>
        /// 管辖区域Json,用于前端编辑用户路径还原使用
        /// </summary>
        public string JurisdictionJson { get; set; }

        /// <summary>
        /// 调查单位ID
        /// </summary>
        public string SurveyUnitId { get; set; }
    }
}
